package com.juyu.miliao.api.domain.dto;

import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.time.LocalDate;
import java.time.LocalDateTime;

/**
 * 回复
 *
 * @author xuanqicheng
 * @create 2019-21-15:23
 */
@Data
public class FindCommentReplyInfoDTO {

    /**
     * 评论id
     */
    @NotNull(message = "评论id不为空")
    private Long commentId;
    /**
     * 回复内容
     */
    @NotBlank(message = "回复内容不为空")
    @Length(max=50,message = "回复内容超长")
    private String replyContent;
    /**
     * 回复的评论id或着回复某条回复信息的id
     */
    @NotNull(message = "replyId不能为空")
    private Long replyId;
    /**
     * 回复类型：1：回复评论，2：回复某条回复信息
     */
    @NotNull(message = "回复类型不能为空")
    @Min(value = 1,message = "回复类型值不正确")
    @Max(value = 2,message = "回复类型值不正确")
    private Integer replyType;
    /**
     * 发送回复用户的id
     */
    private Long replyFromUserId;
    /**
     *目标用户id
     */
    private Long replyToUserId;

    private String replyTime;

    private String replyDate;
}
